def to_html(s: str):
    return f"<p>You should be seeing '{s}' in this html file.<p>"


def html_wrapper(title: str, content: str):
    return f'''<!DOCTYPE html>
    <html lang="zh-Hans">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>{title}</title>
    </head>
    <body>{content}</body>
    </html>\n'''


def to_txt(s: str):
    return f"You should be seeing '{s}' in this plain text txt file."


def txt_wrapper(title: str, content: str):
    return 'title: ' + title + '\n' + content


generators = [
    {
        'name': 'txt',
        'path_prefix': './txt/',
        'file_suffix': '.txt',
        'method': to_txt,
        'file_wrapper': txt_wrapper,
    },
    {
        'name': 'html',
        'path_prefix': './html/',
        'file_suffix': '.html',
        'method': to_html,
        'file_wrapper': html_wrapper,
    },
]
